package l2

import (
	"zstackgo/pkg/header/message"
)

/**
 * @api detach l2Network from a cluster
 * @category l2Network
 * @cli
 * @httpMsg {
 * "org.zstack.header.network.l2.APIDetachL2NetworkFromClusterMsg": {
 * "l2NetworkUuid": "409bbe05c1714d0a88ed9f4fff5bfe7e",
 * "clusterUuid": "5161770207e1481084d3cc28998b7a0b",
 * "session": {
 * "uuid": "ab776cd039d746569a8a8c47eee41460"
 * }
 * }
 * }
 * @msg {
 * "org.zstack.header.network.l2.APIDetachL2NetworkFromClusterMsg": {
 * "l2NetworkUuid": "409bbe05c1714d0a88ed9f4fff5bfe7e",
 * "clusterUuid": "5161770207e1481084d3cc28998b7a0b",
 * "session": {
 * "uuid": "ab776cd039d746569a8a8c47eee41460"
 * },
 * "timeout": 1800000,
 * "id": "09c37622336341f294cb8d692707ff44",
 * "serviceId": "api.portal"
 * }
 * }
 * @result see :ref:`APIDetachL2NetworkFromClusterEvent`
 * @since 0.1.0
 */
//  @RestRequest(
// 	path = "/l2-networks/{l2NetworkUuid}/clusters/{clusterUuid}",
// 	method = HttpMethod.DELETE,
// 	responseClass = APIDetachL2NetworkFromClusterEvent.class
// )
type APIDetachL2NetworkFromClusterMsg struct {
	*message.APIMessageImpl

	L2NetworkUuid string // @APIParam(resourceType = L2NetworkVO.class, checkAccount = true, operationTarget = true)
	ClusterUuid   string
}

func (amsg *APIDetachL2NetworkFromClusterMsg) GetL2NetworkUuid() string {
	return amsg.L2NetworkUuid
}
